package cn.tedu.straw.portal.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class UserDTO implements Serializable {

    @Size(min = 2,max = 20,message = "注册失败,昵称必须是2-10个字符")
    private String username;
    @NotNull(message="注册失败,请填写密码")
    private String password;
}
